package cn.lutu.domain.repository;

import cn.lutu.protocol.entity.Invoice;
import cn.lutu.protocol.vo.InvoiceVO;
import cn.lutu.protocol.vo.adminVO.AdminInvoiceVO;

import java.util.List;

public interface InvoiceRepository {

    int insert(Invoice invoice);

    int deleteByOrderId(Long orderId);

    void updateById(Invoice invoice);

    InvoiceVO selectByOrderId(Long orderId);

    List<InvoiceVO> selectByUserId(Long userId);

    List<InvoiceVO> selectByKeyword(String keyword,Long userId);

    List<AdminInvoiceVO> selectAll();

}
